import { TemplateService } from './../../service/templateService';
import { ServiceManager } from './../../common/serviceFactory/serviceManager';
import * as Koa from 'koa';
import { route, RouteOptionsVerify } from "../../common";
const tmpSvr = ServiceManager.Current.GetService<TemplateService>('TemplateService');
class TemplateController {
    @route(new RouteOptionsVerify('GET', '/api/template'))
    async queryTemplates(ctx: Koa.Context, next) {
        ctx.response.body = null;
        await next();
    }
    @route(new RouteOptionsVerify('GET', '/api/template/:id'))
    async getTemplateInfoById(ctx: Koa.Context, next) {
        ctx.response.body = null;
        await next();
    }
    @route(new RouteOptionsVerify('POST', '/api/template'))
    async createTemplate(ctx: Koa.Context, next) {
        ctx.response.body = null;
        await next();
    }
    @route(new RouteOptionsVerify('PUT', '/api/template'))
    async updateTemplate(ctx: Koa.Context, next) {
        ctx.response.body = null;
        await next();
    }
    @route(new RouteOptionsVerify('DELETE', '/api/template'))
    async deleteTemplate(ctx: Koa.Context, next) {
        ctx.response.body = null;
        await next();
    }
}